<script setup>
import { ref } from 'vue'
const checked = ref(false)
</script>
<template>
	<div class="container">
		<div class="content">
            <div class="tab-nav">
                <div class="tab-item ">
                    <router-link to="./login">
                        <div class="tab-item">密码登录</div>
                    </router-link>
                </div>
                <div class="tab-item current">短信登录</div>
            </div>
			<div class="form-content">
				<div class="form-item">
					<label for="id1" class="accout"></label>
					<input id="id1" type="text" placeholder="请输入手机号" />
				</div>
				<div class="form-item">
					<label for="id2" class="code"></label>
					<input id="id2" type="text" placeholder="请输入验证码" />
					<button type="button" class="get-code">获取验证码</button>
				</div>
				<div class="agree">
					<el-checkbox v-model="checked" label="" />
					我已阅读并同意《服务条款》、《隐私条款》
				</div>
				<button type="button" class="submit">注册</button>
				<div class="tip">
					<div class="hasAccout">
						<span>还没有账号？</span>
						<router-link to="/register">
							<span class="goLogin">立即注册</span>
						</router-link>
					</div>
					<div class="forget">
						<router-link to="/forget">
							<span class="forget-text">忘记密码</span>
						</router-link>
					</div>
				</div>
			</div>
		</div>
	</div>
</template>
<style lang="scss" scoped>
.container{
	width: 100%;
	height: 100%;
	background-image: url(../../assets/images/codeBg.png);
	background-position: 0 0;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.content{
	width: 736px;
	height: 688px;
	background: #FFFFFF;
	border-radius: 30px;
	overflow: hidden;
}
.form-content{
	margin-top: 60px;
}
.form-item{
	width: 480px;
	height: 60px;
	background: rgba(0,0,0,0.05);
	border-radius: 5px;
	margin: 0 auto 40px auto;
	display: flex;
	align-items: center;
	padding: 0 22px;
	box-sizing: border-box;
	position: relative;
}
.form-item input{
    height: 25px;
	width: 400px;
	margin-left: 22px;
	border: none;
	background-color: transparent;
	padding-left: 20px;
	border-left: 1px solid rgba(0,0,0,0.3);
	box-sizing: border-box;
	outline: none;
}
.get-code{
	position: absolute;
	right: 20px;
	top: 18px;
}
.accout{
	display: block;
	width: 17px;
	height: 25px;
	background: url(../../assets/icons/accout.png) no-repeat center center/100%;
}
.code{
	display: block;
	width: 22px;
	height: 25px;
	background: url(../../assets/icons/code.png) no-repeat center center/100%;
}
.password{
	display: block;
	width: 20px;
	height: 25px;
	background: url(../../assets/icons/password.png) no-repeat center center/100%;
}
.agree{
	width: 410px;
	height: 20px;
	margin: 0 auto;
	cursor: pointer;
	font-size: 18px;
	color: #333333;
}
.tab-nav{
    margin-top: 80px;
    display: flex;
    justify-content: center;
    a{
        text-decoration: none;
    }
}
.tab-item{
    font-family: MiSansVF_Medium;
    color: #333333;
	font-size: 28px;
	line-height: 37px;
	text-align: center;
    cursor: pointer;
}
.current{
	color: #45A1FF;
    margin-left: 100px;
}
.submit{
	display: block;
	width: 410px;
	height: 60px;
	line-height: 60px;
	background: #45A1FF;
	border-radius: 5px;
	font-family: MiSansVF_Medium;
	font-size: 22px;
	color: #FFFFFF;
	letter-spacing: 20px;
	text-align: center;
	border: none;
	margin: 85px auto 10px auto;
    cursor: pointer;
}
.tip{
	width: 410px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	a{
		text-decoration: none;
	}
	.goLogin{
		color: #45A1FF;
	}
}
.forget .forget-text{
	font-family: MiSansVF;
	font-size: 18px;
	color: #333333;
	line-height: 24px;
}
.get-code{
	font-family: MiSansVF;
	font-size: 18px;
	color: #45A1FF;
	border: none;
	cursor: pointer;
}
:deep(.el-checkbox__inner) { 
      width: 17px;
      height: 17px;
      border-color: #979797;
      border-radius: 2px;
}
:deep(.el-checkbox__inner::after){
	top: 2px;
	left: 5px;
}	
:deep(.el-checkbox){
	height: 20px;
}
</style>
